
package org.darcy.controller.test;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Child implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;

	private String name;
	
	private Date birthday;
	
	public static Child createData() {
		Child data = new Child();
		data.setBirthday(new Date());
		data.setId(100);
		data.setName("我是儿子");
		return data;
	}

	public static Child createData(int i) {
		Child data = new Child();
		data.setBirthday(new Date());
		data.setId(i);
		data.setName("我是儿子" + i);
		return data;
	}
	
	public static List<Child> createList() {
		List<Child> list = new ArrayList<Child>();
		for (int i = 10; i < 20; i++) {
			list.add(createData(i));
		}
		return list;
	}

}
